import request from '@/utils/request'

export function addMerchantApply(data) {
  return request({
    url: '/juanbusiness/merchant-apply/add',
    method: 'post',
    data
  })
}

export function findMerchantApply(page,size,districtId, merchantTypeId,phone,applyStatus) {
  return request({
    url: '/juanbusiness/merchant-apply/findPage',
    method: 'get',
    params: { page: page,size: size,districtId: districtId, merchantTypeId: merchantTypeId,phone: phone,applyStatus: applyStatus }
  })
}

export function editMerchantApply(data) {
    return request({
      url: '/juanbusiness/merchant-apply/edit',
      method: 'put',
      data
    })
  }

export function detailMerchantApply(id) {
  return request({
    url: '/juanbusiness/merchant-apply/get',
    method: 'get',
    params: {id: id}
  })
}

export function delMerchantApply(id) {
  return request({
    url: '/juanbusiness/merchant-apply/del',
    method: 'delete',
    params: {id: id}
  })
}
